package nxu.it.movieapi.service.impl;

import nxu.it.api.model.Author;
import nxu.it.movieapi.service.AuthorService;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public class AuthorServiceImpl implements AuthorService {
    @Override
    public List<Author> findAll() {
        List<Author> authorList = List.of(
                new Author("001", "小程",2022,"3班"),
                new Author("002", "小康",2022,"2班"),
                new Author("003", "小飞",2022,"2班")
        );
        return authorList;
    }
}